﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Fourpoints
{
    public partial class Contact : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            bp.BusinessLogic.Mail mail = new bp.BusinessLogic.Mail();
            //Confirmation page that will be sent to the user
            string msg = mail.SendMail(Server.MapPath("ContactConfirmation.html"), "mail.bpwe.net", "fpyb@bellsouth.net", dfsEmail.Text,
                                      "root@bpwe.net", "Nv4c7df7", "Thank You: Four Points Yacht and Ship Brokers", dfsName.Text, "",
                                      "", Guid.NewGuid(), "", "", "");



            //notification page
            mail.SendMail(Server.MapPath("ContactNotification.html"), "mail.bpwe.net", dfsEmail.Text, "fpyb@bellsouth.net",
            "root@bpwe.net", "Nv4c7df7", "Contact Notification", "Four Points Yacht and Ship Brokers", "",


           dfsName.Text + "<br/>" + "Phone Number:" + dfsPhone.Text + "<br/>" + "Email Address:" + dfsEmail.Text + "Address:" + dfsAddress.Text + "City:" + dfsCity + "State:" + StateList.Text + "Country:" + CountryList.Text + "Zip:" + dfsZip.Text + "Intrest" + DDLIntrest.Text + "Message:" + dfsComments.Text, Guid.NewGuid(), "", "", "");

            Response.Redirect("Thanks.html");

        }
    }
}